package com.yc.springclouduser.web;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

@RestController

public class OrderAction {

    @RequestMapping("order")
    public String order(HttpServletRequest request){
        int port = request.getServerPort();
        return "order"+ port;
    }

}
